import request from "@/utils/request";

// 查询ZyValueCardTransfer列表
export function listZyValueCardTransfer(query) {
  return request({
    url: "/system/ZyValueCardTransfer/list",
    method: "get",
    params: query,
  });
}

// 查询ZyValueCardTransfer详细
export function getZyValueCardTransfer(id) {
  return request({
    url: "/system/ZyValueCardTransfer/" + id,
    method: "get",
  });
}

// 新增ZyValueCardTransfer
export function addZyValueCardTransfer(data) {
  return request({
    url: "/system/ZyValueCardTransfer",
    method: "post",
    data: data,
  });
}

// 修改ZyValueCardTransfer
export function updateZyValueCardTransfer(data) {
  return request({
    url: "/system/ZyValueCardTransfer",
    method: "put",
    data: data,
  });
}

// 删除ZyValueCardTransfer
export function delZyValueCardTransfer(data) {
  return request({
    url: "/system/ZyValueCardTransfer/removeValueCard",
    method: "post",
    data: data,
  });
}

//获取区域列表
export const listMemberRegion = (query) => {
  return request({
    url: "/system/region/addList",
    method: "get",
    params: query,
  });
};

//获取店铺列表
export const listMemberStore = (query) => {
  return request({
    url: "/system/store/allList",
    method: "get",
    params: query,
  });
};

// 门店储值卡列表
export const listStoreMember = (query) => {
  return request({
    url: "/system/value/card/rule/list",
    method: "get",
    params: query,
  });
};
